package cate.common.table.pvp.pointrace.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class PointRaceChallengeRewardRow extends ERow {

    @NoteField("是否成功")
    public boolean success;

    @NoteField("奖励")
    public String rewardStr;

    @NoteField("权重")
    public double weight;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID");
        this.success = xrw.getBoolean("是否成功", false);
        this.rewardStr = xrw.getString("奖励");
        this.weight = xrw.getDouble("权重", 0.0);
    }
}
